package com.ghf.dp4;

//代理类
public class Proxy implements Subject{

    private RealSubject realSubject;

    public Proxy(){
        this.realSubject = new RealSubject();
    }

    @Override
    public void request() {
        realSubject.request();
    }
}
